package com.qhgrain.app.vo;

import com.paas.base.modules.utils.lang.StringUtil;
import com.qhgrain.app.constant.AppBusinessTypeEnum;

public class AppVo {

	private String id;// 应用编号
	private String appName; // 应用名称
	private String businessType; // 业务类型
	private String appUrl;// 应用地址
	private String iconClass; // 图标类型
	private String appCode; // 应用代码
	private String appOrder="1";// 应用顺序,默认1
	private String description;// 应用描述
	private String appType;//0 web,1手机
	/**
	 * 应用所属群组
	 */
	private String appGroupId;
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getAppName() {
		return appName;
	}
	public void setAppName(String appName) {
		this.appName = appName;
	}
	public String getBusinessType() {
		return businessType;
	}
	public void setBusinessType(String businessType) {
		this.businessType = businessType;
	}
	public String getAppUrl() {
		return appUrl;
	}
	public void setAppUrl(String appUrl) {
		this.appUrl = appUrl;
	}
	public String getIconClass() {
		return iconClass;
	}
	public void setIconClass(String iconClass) {
		this.iconClass = iconClass;
	}
	public String getAppCode() {
		return appCode;
	}
	public void setAppCode(String appCode) {
		this.appCode = appCode;
	}
	public String getAppOrder() {
		return appOrder;
	}
	public void setAppOrder(String appOrder) {
		this.appOrder = appOrder;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public String getAppGroupId() {
		return appGroupId;
	}
	public void setAppGroupId(String appGroupId) {
		this.appGroupId = appGroupId;
	}
	
	public String getBusinessTypeName(){
		if(StringUtil.isNotBlank(this.businessType)){
			return AppBusinessTypeEnum.findName(this.businessType);
		}
		return "";
	}
	public String getAppType() {
		return appType;
	}
	public void setAppType(String appType) {
		this.appType = appType;
	}
	
	public String getAppTypeName(){
		if("0".equals(appType)){
			return "web端";
		}else if("1".equals("appType")){
			return "手机端";
		}
		return "";
	}
}
